<script type="text/javascript" >
    jQuery('form#post').attr('enctype','multipart/form-data');
    jQuery('form#post').attr('encoding','multipart/form-data');


</script>
<table border="0" cellpadding="0" cellspacing="0">
       <tr><td>
                &nbsp;</td>
               <td><input type="button" value="Test with URL Linter" class="button-primary" id="wp-submit" name="lint" onclick="window.open('http://developers.facebook.com/tools/lint/?url=<?php echo urlencode(get_permalink($id));?>')" /> </td>
       </tr>
       <tr><td>&nbsp;</td></tr>
       <tr><td>
                <label class="login_label">Title:</label></td>
               <td> <input type="text" name="title2" id="title2" class="input login_input required" value="<?php echo get_post_meta($id, 'title',true); ?>" size="50" />&nbsp;<a href="javascript:void(0);" id="user_title" onclick="jQuery('#title2').val(jQuery('#title').val());">Use post/page title</a>
               <input type="hidden" id="setting_title" value="<?php echo $options['title'];?>" />
                </td>
       </tr>

           <tr>
           <td><label class="login_label">Type:</label>    </td>
              <td>
              <input type="hidden" id="setting_type" value="<?php echo $options['type'];?>" />
               <select name="type" id="type" class="input login_input required">
                <option value="activity" <?php if (get_post_meta($id, 'type',true) == 'activity') echo ' selected'; ?>>activity</option>
                <option value="sport" <?php if (get_post_meta($id, 'type',true) == 'sport') echo ' selected'; ?>>sport</option>
                 <option value="bar" <?php if (get_post_meta($id, 'type',true) == 'bar') echo ' selected'; ?>>bar</option>
                <option value="company" <?php if (get_post_meta($id, 'type',true) == 'company') echo ' selected'; ?>>company</option>
                <option value="cafe" <?php if (get_post_meta($id, 'type',true) == 'cafe') echo ' selected'; ?>>cafe</option>
                <option value="hotel" <?php if (get_post_meta($id, 'type',true) == 'hotel') echo ' selected'; ?>>hotel</option>
                <option value="restaurant" <?php if (get_post_meta($id, 'type',true) == 'restaurant') echo ' selected'; ?>>restaurant</option>
                <option value="cause" <?php if (get_post_meta($id, 'type',true) == 'cause') echo ' selected'; ?>>cause</option>
                <option value="sports_league" <?php if (get_post_meta($id, 'type',true) == 'sports_league') echo ' selected'; ?>>sports_league</option>
                <option value="sports_team" <?php if (get_post_meta($id, 'type',true) == 'sports_team') echo ' selected'; ?>>sports_team</option>
                <option value="band" <?php if (get_post_meta($id, 'type',true) == 'band') echo ' selected'; ?>>band</option>
                <option value="government" <?php if (get_post_meta($id, 'type',true) == 'government') echo ' selected'; ?>>government</option>
                <option value="non_profit" <?php if (get_post_meta($id, 'type',true) == 'non_profit') echo ' selected'; ?>>non_profit</option>
                <option value="school" <?php if (get_post_meta($id, 'type',true) == 'school') echo ' selected'; ?>>school</option>
                <option value="university" <?php if (get_post_meta($id, 'type',true) == 'university') echo ' selected'; ?>>university</option>
                <option value="actor" <?php if (get_post_meta($id, 'type',true) == 'actor') echo ' selected'; ?>>actor</option>
                <option value="athlete" <?php if (get_post_meta($id, 'type',true) == 'athlete') echo ' selected'; ?>>athlete</option>
                <option value="author" <?php if (get_post_meta($id, 'type',true) == 'author') echo ' selected'; ?>>author</option>
                <option value="director" <?php if (get_post_meta($id, 'type',true) == 'director') echo ' selected'; ?>>director</option>
                <option value="musician" <?php if (get_post_meta($id, 'type',true) == 'musician') echo ' selected'; ?>>musician</option>
                <option value="politician" <?php if (get_post_meta($id, 'type',true) == 'politician') echo ' selected'; ?>>politician</option>
                <option value="public_figure" <?php if (get_post_meta($id, 'type',true) == 'public_figure') echo ' selected'; ?>>public_figure</option>
                <option value="city" <?php if (get_post_meta($id, 'type',true) == 'city') echo ' selected'; ?>>city</option>
                <option value="country" <?php if (get_post_meta($id, 'type',true) == 'country') echo ' selected'; ?>>country</option>
                <option value="landmark" <?php if (get_post_meta($id, 'type',true) == 'landmark') echo ' selected'; ?>>landmark</option>
                <option value="state_province" <?php if (get_post_meta($id, 'type',true) == 'state_province') echo ' selected'; ?>>state_province</option>
                <option value="album" <?php if (get_post_meta($id, 'type',true) == 'album') echo ' selected'; ?>>album</option>
                <option value="book" <?php if (get_post_meta($id, 'type',true) == 'book') echo ' selected'; ?>>book</option>
                <option value="drink" <?php if (get_post_meta($id, 'type',true) == 'drink') echo ' selected'; ?>>drink</option>
                <option value="food" <?php if (get_post_meta($id, 'type',true) == 'food') echo ' selected'; ?>>food</option>
                <option value="game" <?php if (get_post_meta($id, 'type',true) == 'game') echo ' selected'; ?>>game</option>
                <option value="product" <?php if (get_post_meta($id, 'type',true) == 'product') echo ' selected'; ?>>product</option>
                <option value="song" <?php if (get_post_meta($id, 'type',true) == 'song') echo ' selected'; ?>>song</option>
                <option value="movie" <?php if (get_post_meta($id, 'type',true) == 'movie') echo ' selected'; ?>>movie</option>
                <option value="tv_show" <?php if (get_post_meta($id, 'type',true) == 'tv_show') echo ' selected'; ?>>tv_show</option>
                <option value="blog" <?php if (get_post_meta($id, 'type',true) == 'blog') echo ' selected'; ?>>blog</option>
                <option value="website" <?php if (get_post_meta($id, 'type',true) == 'website') echo ' selected'; ?>>website</option>
                <option value="article" <?php if (get_post_meta($id, 'type',true) == 'article') echo ' selected'; ?>>article</option>
               
                </select> 
            </td>
           </tr>
            <tr>
            <td>
                <label class="login_label">Image:</label>
                </td><td>
               <input type="file" name="image" id="image" /><?php if(get_post_meta($id, 'image',true) != ''){?>
               <span id="image_display">
                <br /><br />
                <img src="<?php echo get_post_meta($id, 'image',true);?>"  height="150" /><br />
                 <a href="javascript:void(0);" onclick="facebook_like_remove_image('<?php echo $id;?>');">Delete image</a>
                </span>
               <?php } ?>
               <span style="display: none;" id="display_image">
               <br /><br />
               <img src="<?php echo $options['image'];?>"  height="150" />
               </span>
               <input type="hidden" id="setting_image" name="setting_image" value="" /></td>
            </tr>
            <tr>
            <td>
                <label class="login_label">Site name:</label></td>
                <td>
                <input type="text" name="site_name" id="site_name" class="input login_input required" value="<?php echo get_post_meta($id, 'site_name',true);?>" size="50" /><input type="hidden" id="setting_site_name" value="<?php echo $options['site_name'];?>" />
                </td>
            </tr>
            <tr>
                <td><label class="login_label">Description:</label></td>
                <td><textarea name="description" id="description" class="input login_input required" rows="5" cols="40"><?php echo get_post_meta($id, 'description',true);?></textarea>
                <input type="hidden" id="setting_description" value="<?php echo $options['description'];?>" /></td>
            </tr>
          
            
</table>      